package au.edu.swin.swinvehicle.vehicletype;

/**
 * VehicleType tranfer object. This is the brief information of vehicle type.
 * It might be used for drop down box for selecting vehicle type.
 * @version 1.0
 * @author Viet Bui
 * @lastmodify 2009-05-10
 */
import java.io.Serializable;

// We will make the class Serializable so we can easily send it to remote clients.
public class VehicleTypeTO implements Serializable {

    private Long id;
    private String code;

    /** Creates a new instance of VehicleTypeTO */
    public VehicleTypeTO(Long id, String code) {
        this.id = id;
        this.setCode(code);
    }

    public Long getId() {
        return id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
